#include "subwidget.h"
#include<QLabel>
#include<QDebug>
subWidget::subWidget(QWidget *parent) : QWidget(parent)
{

    setWindowTitle("正确接线方式");
    QPixmap pix;
    pix.load(":/res2.jpg");

    this->setFixedSize(pix.width(),pix.height());

    QLabel *label = new QLabel;
    label->setParent(this);
    label->setPixmap(pix);
    label->setGeometry(0,0,pix.width(),pix.height());
//    qDebug()<<pix.height();

//    this->setGeometry(200,100,982,574);
    label->show();
}
